package com.data2wisdom.comm.extend.model;

import java.util.Date;

import com.data2wisdom.comm.extend.superclass.DbDataSource;
import com.data2wisdom.comm.extend.util.annotation.Solomon;

/**
 * 子类对象，其属性需存储在通用属性表中
 * 
 * @author Administrator
 *
 */
public class MysqlDataSource extends DbDataSource {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2871634419860967350L;
	
	@Solomon(isDynParam = true)
	private Integer isUseCursor;
	/**
	 * 是否使用sequence
	 */
	@Solomon(isDynParam = true)
	private Integer isUseSequence; 
	
	@Solomon(isDynParam = true)
	private Date useDate;

	public Integer getIsUseCursor() {
		return isUseCursor;
	}

	public void setIsUseCursor(Integer isUseCursor) {
		this.isUseCursor = isUseCursor;
	}

	public Integer getIsUseSequence() {
		return isUseSequence;
	}

	public void setIsUseSequence(Integer isUseSequence) {
		this.isUseSequence = isUseSequence;
	}

	public Date getUseDate() {
		return useDate;
	}

	public void setUseDate(Date useDate) {
		this.useDate = useDate;
	}

	@Override
	public String toString() {
		return "MysqlDataSource [isUseCursor=" + isUseCursor + ", isUseSequence=" + isUseSequence + ", useDate=" + useDate + ",  Id="
				+ getId() + ", ConnectUrl=" + getConnectUrl() + ", DsName=" + getDsName() + "]";
	}
	
	public String getCcd() {
		return "d";
	}
}
